package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.*;
import com.ruoyi.system.api.factory.RemoteProcessLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Set;

@FeignClient(contextId = "remoteProcessLogService", value = ServiceNameConstants.PROCESS_LOG_SERVICE, fallbackFactory = RemoteProcessLogFallbackFactory.class)
public interface RemoteProcessLogService {
    /**
     * 新增流程日志
     */
    @PostMapping("/log/add")
    public AjaxResult add(@RequestBody SysProcessLog sysProcessLog);

    /**
     * 查询流程日志
     */
    /**
     * 查询车辆信息
     */
    @PostMapping("/log/selectLogs")
    public R<List<SysProcessLogDto>> selectVehicles(@RequestBody SysProcessLogSelect sysProcessLogSelect);

}
